package com.gimi.cloud.jimi.manage.consumer.service.app;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @auther loongs
 * @date 2017/12/29  11:26
 */
public interface MajorAdService {
    /**
     * 获得首页广告列表展示（分页）
     * @return 菜单列表
     */
    Response getMajorAdList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 选择商品时候，查看商品列表
     * @return 菜单列表
     */
    Response majorAdRelyColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 主页广告对应的栏目
     * @return 菜单列表
     */
    Response majorAdRelyColumn(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 添加首页广告
     * @return 菜单列表
     */
    Response AddMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 编辑首页广告
     * @return 菜单列表
     */
    Response editMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑首页广告页面（查询指定首页广告）
     * @return 菜单列表
     */
    Response gotoEditMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 删除首页广告
     * @return 菜单列表
     */
    Response deleteMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 发布首页广告
     * @return 菜单列表
     */
    Response publishMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 撤下首页广告
     * @return 菜单列表
     */
    Response underMajorAd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 上传首页广告图片
     * @param response
     * @param request
     * @throws Exception
     */
    Response uploadMajorAdFile(HttpServletResponse response, HttpServletRequest request) throws Exception;
}
